<script>
	import Vue from 'vue';
	export default {
		onLaunch: function (options) {
			// 初始化用户状态
			this.User.__init();
			// 获取当前手机信息
			uni.getSystemInfo({
				success: function(e) {
				Vue.prototype.PlatForm = e.platform;
					
				// #ifdef MP-WEIXIN
				Vue.prototype.StatusBar = e.statusBarHeight;
				let custom = wx.getMenuButtonBoundingClientRect();
				Vue.prototype.Custom = custom;
				Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
				// #endif
				}
			});
		},
		onShow: function () {
			console.log('App Show')
		},
		onHide: function () {
			console.log('App Hide')
		}
	}
</script>

<style>
	
	/* 初始化样式 */
	@import './common/css/main.css';
	@import './common/css/icon.css';
	@import './common/css/app.css';
</style>
